<?php

namespace app\validate;

use think\Validate;

class AdminIcCard extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'school_id|学校' => 'require|integer',
        'dormitory_id|宿舍楼ID' => 'require|integer',
        'student_dormitory_id|宿舍号ID' => 'require|integer',
        'staff_id|学生ID' => 'require|integer'
    ];
}